package cn.fl.riskctrl.jxldb.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.cmm.base.framework.constant.BaseExceptionConstant;
import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.utils.BaseLogUtils;
import cn.fl.riskctrl.jxldb.service.IJxldbModifyService;
import cn.fl.riskctrl.jxldb.transform.JxlApplyVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgApplyLVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgApplyVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgBlkDtlVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgBlkVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgIdMpDubtVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgIdNmDubtVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgIdOrgDubtVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgMpIdDubtVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgMpNmDubtVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgMpOrgDubtVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgOrgSrchHisVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgRegStatsVOTransform;
import cn.fl.riskctrl.jxldb.transform.JxlmgReportVOTransform;
import cn.fl.riskctrl.jxldb.vo.JxlApplyVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgApplyLVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgApplyVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgBlkDtlVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgBlkVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgIdMpDubtVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgIdNmDubtVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgIdOrgDubtVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgMpIdDubtVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgMpNmDubtVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgMpOrgDubtVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgOrgSrchHisVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgRegStatsVO;
import cn.fl.riskctrl.jxldb.vo.JxlmgReportVO;
import fl.riskctrl.facade.jxldb.api.IJxldbModifyApiService;

@Service
public class JxldbModifyServiceImpl implements IJxldbModifyService {

	private static final Logger logger = LoggerFactory.getLogger(JxldbModifyServiceImpl.class);
	@Autowired
	private IJxldbModifyApiService jxldbModifyApiService;
	
	@Override
	public Boolean modifyJxlApply(JxlApplyVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlApply", "修改聚立信申请对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlApply(JxlApplyVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgApply(JxlmgApplyVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgApply", "修改蜜罐申请对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgApply(JxlmgApplyVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgApplyL(JxlmgApplyLVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgApplyL", "修改蜜罐日志申请对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgApplyL(JxlmgApplyLVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgReport(JxlmgReportVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgReport", "修改蜜罐报告对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgReport(JxlmgReportVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgBlk(JxlmgBlkVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgBlk", "修改蜜罐黑名单对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgBlk(JxlmgBlkVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgBlkDtl(JxlmgBlkDtlVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgBlkDtl", "修改蜜罐黑名单详情对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgBlkDtl(JxlmgBlkDtlVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgOrgSrchHis(JxlmgOrgSrchHisVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgOrgSrchHis", "修改蜜罐用户被机构查询历史对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgOrgSrchHis(JxlmgOrgSrchHisVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgRegStats(JxlmgRegStatsVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgRegStats", "修改蜜罐用户注册信息统计情况对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgRegStats(JxlmgRegStatsVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgMpIdDubt(JxlmgMpIdDubtVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgMpIdDubt", "修改蜜罐手机号码绑定的其他身份证存疑对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgMpIdDubt(JxlmgMpIdDubtVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgIdNmDubt(JxlmgIdNmDubtVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgIdNmDubt", "修改身份证号码绑定的其他姓名存疑对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgIdNmDubt(JxlmgIdNmDubtVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgMpNmDubt(JxlmgMpNmDubtVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgMpNmDubt", "修改手机号码绑定的其他姓名存疑对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgMpNmDubt(JxlmgMpNmDubtVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgIdMpDubt(JxlmgIdMpDubtVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgIdMpDubt", "修改身份证号码绑定的其他手机号存疑对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgIdMpDubt(JxlmgIdMpDubtVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgMpOrgDubt(JxlmgMpOrgDubtVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgMpOrgDubt", "修改电话号码在哪些类型的机构中使用过存疑对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgMpOrgDubt(JxlmgMpOrgDubtVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyJxlMgIdOrgDubt(JxlmgIdOrgDubtVO vo) throws BaseException {
		if (null == vo) {
			BaseLogUtils.info(logger, "modifyJxlMgIdOrgDubt", "修改身份证在哪些类型的机构中使用过存疑对象数据参数为空");
            throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, BaseExceptionConstant.BASE_EXCEPTION_CODE_600_NAME);
        }
		return this.jxldbModifyApiService.modifyJxlMgIdOrgDubt(JxlmgIdOrgDubtVOTransform.toDTO(vo));
	}

}
